package com.chis.jmdatatimer.main;

import com.chis.jmdatatimer.comm.TxMgmtModule;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;


/**
 * @author wlj
 * @version 2019年01月20日
 * @Description
 * @Company zwx
 */
public class TestCool {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"spring.xml"});
        context.start();
        TxMgmtModule txMgmtModule = (TxMgmtModule) context.getBean("TxMgmtModule");
        String childcode = args[0];
        String[] strings = childcode.split(",");
        txMgmtModule.testHa(strings);

    }
}
